<template>
    <div>
        <ul>
            <li v-for="(stu,index) in stus" v-bind:key="index">
                index:{{index}}, stu:{{stu}}
            </li>

            使用对象的方式 <br/>
            <li v-for="(value,key,index) in person" v-bind:key="index">
                value: {{value}}
                key: {{key}}
                index: {{index}}
            </li>
        </ul>
    </div>

</template>
<script>
    export default{
        data(){
            return {
                stus:[{name:"bibi",score:'A'},{name:'coco',score:'B'}],
                person:{name: 'mike',alise: '迈克'}
            }
        }
    }
</script>